28. SVM Author ID Accuracy

SVM Author ID Accuracy

Question:

Go to the svm directory to find the starter code ( svm/svm_author_id.py ).

Import, create, train and make predictions with the sklearn SVC classifier. When creating the classifier, use a linear kernel (if you forget this step, you will be unpleasantly surprised by how long the classifier takes to train). What is the accuracy of the classifier?

Start Quiz: